package sixth.group.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CustomerExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CustomerExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCidIsNull() {
            addCriterion("cid is null");
            return (Criteria) this;
        }

        public Criteria andCidIsNotNull() {
            addCriterion("cid is not null");
            return (Criteria) this;
        }

        public Criteria andCidEqualTo(Integer value) {
            addCriterion("cid =", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotEqualTo(Integer value) {
            addCriterion("cid <>", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidGreaterThan(Integer value) {
            addCriterion("cid >", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidGreaterThanOrEqualTo(Integer value) {
            addCriterion("cid >=", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidLessThan(Integer value) {
            addCriterion("cid <", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidLessThanOrEqualTo(Integer value) {
            addCriterion("cid <=", value, "cid");
            return (Criteria) this;
        }

        public Criteria andCidIn(List<Integer> values) {
            addCriterion("cid in", values, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotIn(List<Integer> values) {
            addCriterion("cid not in", values, "cid");
            return (Criteria) this;
        }

        public Criteria andCidBetween(Integer value1, Integer value2) {
            addCriterion("cid between", value1, value2, "cid");
            return (Criteria) this;
        }

        public Criteria andCidNotBetween(Integer value1, Integer value2) {
            addCriterion("cid not between", value1, value2, "cid");
            return (Criteria) this;
        }

        public Criteria andCusernameIsNull() {
            addCriterion("cusername is null");
            return (Criteria) this;
        }

        public Criteria andCusernameIsNotNull() {
            addCriterion("cusername is not null");
            return (Criteria) this;
        }

        public Criteria andCusernameEqualTo(String value) {
            addCriterion("cusername =", value, "cusername");
            return (Criteria) this;
        }

        public Criteria andCusernameNotEqualTo(String value) {
            addCriterion("cusername <>", value, "cusername");
            return (Criteria) this;
        }

        public Criteria andCusernameGreaterThan(String value) {
            addCriterion("cusername >", value, "cusername");
            return (Criteria) this;
        }

        public Criteria andCusernameGreaterThanOrEqualTo(String value) {
            addCriterion("cusername >=", value, "cusername");
            return (Criteria) this;
        }

        public Criteria andCusernameLessThan(String value) {
            addCriterion("cusername <", value, "cusername");
            return (Criteria) this;
        }

        public Criteria andCusernameLessThanOrEqualTo(String value) {
            addCriterion("cusername <=", value, "cusername");
            return (Criteria) this;
        }

        public Criteria andCusernameLike(String value) {
            addCriterion("cusername like", value, "cusername");
            return (Criteria) this;
        }

        public Criteria andCusernameNotLike(String value) {
            addCriterion("cusername not like", value, "cusername");
            return (Criteria) this;
        }

        public Criteria andCusernameIn(List<String> values) {
            addCriterion("cusername in", values, "cusername");
            return (Criteria) this;
        }

        public Criteria andCusernameNotIn(List<String> values) {
            addCriterion("cusername not in", values, "cusername");
            return (Criteria) this;
        }

        public Criteria andCusernameBetween(String value1, String value2) {
            addCriterion("cusername between", value1, value2, "cusername");
            return (Criteria) this;
        }

        public Criteria andCusernameNotBetween(String value1, String value2) {
            addCriterion("cusername not between", value1, value2, "cusername");
            return (Criteria) this;
        }

        public Criteria andCpassIsNull() {
            addCriterion("cpass is null");
            return (Criteria) this;
        }

        public Criteria andCpassIsNotNull() {
            addCriterion("cpass is not null");
            return (Criteria) this;
        }

        public Criteria andCpassEqualTo(String value) {
            addCriterion("cpass =", value, "cpass");
            return (Criteria) this;
        }

        public Criteria andCpassNotEqualTo(String value) {
            addCriterion("cpass <>", value, "cpass");
            return (Criteria) this;
        }

        public Criteria andCpassGreaterThan(String value) {
            addCriterion("cpass >", value, "cpass");
            return (Criteria) this;
        }

        public Criteria andCpassGreaterThanOrEqualTo(String value) {
            addCriterion("cpass >=", value, "cpass");
            return (Criteria) this;
        }

        public Criteria andCpassLessThan(String value) {
            addCriterion("cpass <", value, "cpass");
            return (Criteria) this;
        }

        public Criteria andCpassLessThanOrEqualTo(String value) {
            addCriterion("cpass <=", value, "cpass");
            return (Criteria) this;
        }

        public Criteria andCpassLike(String value) {
            addCriterion("cpass like", value, "cpass");
            return (Criteria) this;
        }

        public Criteria andCpassNotLike(String value) {
            addCriterion("cpass not like", value, "cpass");
            return (Criteria) this;
        }

        public Criteria andCpassIn(List<String> values) {
            addCriterion("cpass in", values, "cpass");
            return (Criteria) this;
        }

        public Criteria andCpassNotIn(List<String> values) {
            addCriterion("cpass not in", values, "cpass");
            return (Criteria) this;
        }

        public Criteria andCpassBetween(String value1, String value2) {
            addCriterion("cpass between", value1, value2, "cpass");
            return (Criteria) this;
        }

        public Criteria andCpassNotBetween(String value1, String value2) {
            addCriterion("cpass not between", value1, value2, "cpass");
            return (Criteria) this;
        }

        public Criteria andCimageIsNull() {
            addCriterion("cimage is null");
            return (Criteria) this;
        }

        public Criteria andCimageIsNotNull() {
            addCriterion("cimage is not null");
            return (Criteria) this;
        }

        public Criteria andCimageEqualTo(String value) {
            addCriterion("cimage =", value, "cimage");
            return (Criteria) this;
        }

        public Criteria andCimageNotEqualTo(String value) {
            addCriterion("cimage <>", value, "cimage");
            return (Criteria) this;
        }

        public Criteria andCimageGreaterThan(String value) {
            addCriterion("cimage >", value, "cimage");
            return (Criteria) this;
        }

        public Criteria andCimageGreaterThanOrEqualTo(String value) {
            addCriterion("cimage >=", value, "cimage");
            return (Criteria) this;
        }

        public Criteria andCimageLessThan(String value) {
            addCriterion("cimage <", value, "cimage");
            return (Criteria) this;
        }

        public Criteria andCimageLessThanOrEqualTo(String value) {
            addCriterion("cimage <=", value, "cimage");
            return (Criteria) this;
        }

        public Criteria andCimageLike(String value) {
            addCriterion("cimage like", value, "cimage");
            return (Criteria) this;
        }

        public Criteria andCimageNotLike(String value) {
            addCriterion("cimage not like", value, "cimage");
            return (Criteria) this;
        }

        public Criteria andCimageIn(List<String> values) {
            addCriterion("cimage in", values, "cimage");
            return (Criteria) this;
        }

        public Criteria andCimageNotIn(List<String> values) {
            addCriterion("cimage not in", values, "cimage");
            return (Criteria) this;
        }

        public Criteria andCimageBetween(String value1, String value2) {
            addCriterion("cimage between", value1, value2, "cimage");
            return (Criteria) this;
        }

        public Criteria andCimageNotBetween(String value1, String value2) {
            addCriterion("cimage not between", value1, value2, "cimage");
            return (Criteria) this;
        }

        public Criteria andCaddressIsNull() {
            addCriterion("caddress is null");
            return (Criteria) this;
        }

        public Criteria andCaddressIsNotNull() {
            addCriterion("caddress is not null");
            return (Criteria) this;
        }

        public Criteria andCaddressEqualTo(String value) {
            addCriterion("caddress =", value, "caddress");
            return (Criteria) this;
        }

        public Criteria andCaddressNotEqualTo(String value) {
            addCriterion("caddress <>", value, "caddress");
            return (Criteria) this;
        }

        public Criteria andCaddressGreaterThan(String value) {
            addCriterion("caddress >", value, "caddress");
            return (Criteria) this;
        }

        public Criteria andCaddressGreaterThanOrEqualTo(String value) {
            addCriterion("caddress >=", value, "caddress");
            return (Criteria) this;
        }

        public Criteria andCaddressLessThan(String value) {
            addCriterion("caddress <", value, "caddress");
            return (Criteria) this;
        }

        public Criteria andCaddressLessThanOrEqualTo(String value) {
            addCriterion("caddress <=", value, "caddress");
            return (Criteria) this;
        }

        public Criteria andCaddressLike(String value) {
            addCriterion("caddress like", value, "caddress");
            return (Criteria) this;
        }

        public Criteria andCaddressNotLike(String value) {
            addCriterion("caddress not like", value, "caddress");
            return (Criteria) this;
        }

        public Criteria andCaddressIn(List<String> values) {
            addCriterion("caddress in", values, "caddress");
            return (Criteria) this;
        }

        public Criteria andCaddressNotIn(List<String> values) {
            addCriterion("caddress not in", values, "caddress");
            return (Criteria) this;
        }

        public Criteria andCaddressBetween(String value1, String value2) {
            addCriterion("caddress between", value1, value2, "caddress");
            return (Criteria) this;
        }

        public Criteria andCaddressNotBetween(String value1, String value2) {
            addCriterion("caddress not between", value1, value2, "caddress");
            return (Criteria) this;
        }

        public Criteria andCphoneIsNull() {
            addCriterion("cphone is null");
            return (Criteria) this;
        }

        public Criteria andCphoneIsNotNull() {
            addCriterion("cphone is not null");
            return (Criteria) this;
        }

        public Criteria andCphoneEqualTo(String value) {
            addCriterion("cphone =", value, "cphone");
            return (Criteria) this;
        }

        public Criteria andCphoneNotEqualTo(String value) {
            addCriterion("cphone <>", value, "cphone");
            return (Criteria) this;
        }

        public Criteria andCphoneGreaterThan(String value) {
            addCriterion("cphone >", value, "cphone");
            return (Criteria) this;
        }

        public Criteria andCphoneGreaterThanOrEqualTo(String value) {
            addCriterion("cphone >=", value, "cphone");
            return (Criteria) this;
        }

        public Criteria andCphoneLessThan(String value) {
            addCriterion("cphone <", value, "cphone");
            return (Criteria) this;
        }

        public Criteria andCphoneLessThanOrEqualTo(String value) {
            addCriterion("cphone <=", value, "cphone");
            return (Criteria) this;
        }

        public Criteria andCphoneLike(String value) {
            addCriterion("cphone like", value, "cphone");
            return (Criteria) this;
        }

        public Criteria andCphoneNotLike(String value) {
            addCriterion("cphone not like", value, "cphone");
            return (Criteria) this;
        }

        public Criteria andCphoneIn(List<String> values) {
            addCriterion("cphone in", values, "cphone");
            return (Criteria) this;
        }

        public Criteria andCphoneNotIn(List<String> values) {
            addCriterion("cphone not in", values, "cphone");
            return (Criteria) this;
        }

        public Criteria andCphoneBetween(String value1, String value2) {
            addCriterion("cphone between", value1, value2, "cphone");
            return (Criteria) this;
        }

        public Criteria andCphoneNotBetween(String value1, String value2) {
            addCriterion("cphone not between", value1, value2, "cphone");
            return (Criteria) this;
        }

        public Criteria andCbalanceIsNull() {
            addCriterion("cbalance is null");
            return (Criteria) this;
        }

        public Criteria andCbalanceIsNotNull() {
            addCriterion("cbalance is not null");
            return (Criteria) this;
        }

        public Criteria andCbalanceEqualTo(Integer value) {
            addCriterion("cbalance =", value, "cbalance");
            return (Criteria) this;
        }

        public Criteria andCbalanceNotEqualTo(Integer value) {
            addCriterion("cbalance <>", value, "cbalance");
            return (Criteria) this;
        }

        public Criteria andCbalanceGreaterThan(Integer value) {
            addCriterion("cbalance >", value, "cbalance");
            return (Criteria) this;
        }

        public Criteria andCbalanceGreaterThanOrEqualTo(Integer value) {
            addCriterion("cbalance >=", value, "cbalance");
            return (Criteria) this;
        }

        public Criteria andCbalanceLessThan(Integer value) {
            addCriterion("cbalance <", value, "cbalance");
            return (Criteria) this;
        }

        public Criteria andCbalanceLessThanOrEqualTo(Integer value) {
            addCriterion("cbalance <=", value, "cbalance");
            return (Criteria) this;
        }

        public Criteria andCbalanceIn(List<Integer> values) {
            addCriterion("cbalance in", values, "cbalance");
            return (Criteria) this;
        }

        public Criteria andCbalanceNotIn(List<Integer> values) {
            addCriterion("cbalance not in", values, "cbalance");
            return (Criteria) this;
        }

        public Criteria andCbalanceBetween(Integer value1, Integer value2) {
            addCriterion("cbalance between", value1, value2, "cbalance");
            return (Criteria) this;
        }

        public Criteria andCbalanceNotBetween(Integer value1, Integer value2) {
            addCriterion("cbalance not between", value1, value2, "cbalance");
            return (Criteria) this;
        }

        public Criteria andCpermissionIsNull() {
            addCriterion("cpermission is null");
            return (Criteria) this;
        }

        public Criteria andCpermissionIsNotNull() {
            addCriterion("cpermission is not null");
            return (Criteria) this;
        }

        public Criteria andCpermissionEqualTo(Integer value) {
            addCriterion("cpermission =", value, "cpermission");
            return (Criteria) this;
        }

        public Criteria andCpermissionNotEqualTo(Integer value) {
            addCriterion("cpermission <>", value, "cpermission");
            return (Criteria) this;
        }

        public Criteria andCpermissionGreaterThan(Integer value) {
            addCriterion("cpermission >", value, "cpermission");
            return (Criteria) this;
        }

        public Criteria andCpermissionGreaterThanOrEqualTo(Integer value) {
            addCriterion("cpermission >=", value, "cpermission");
            return (Criteria) this;
        }

        public Criteria andCpermissionLessThan(Integer value) {
            addCriterion("cpermission <", value, "cpermission");
            return (Criteria) this;
        }

        public Criteria andCpermissionLessThanOrEqualTo(Integer value) {
            addCriterion("cpermission <=", value, "cpermission");
            return (Criteria) this;
        }

        public Criteria andCpermissionIn(List<Integer> values) {
            addCriterion("cpermission in", values, "cpermission");
            return (Criteria) this;
        }

        public Criteria andCpermissionNotIn(List<Integer> values) {
            addCriterion("cpermission not in", values, "cpermission");
            return (Criteria) this;
        }

        public Criteria andCpermissionBetween(Integer value1, Integer value2) {
            addCriterion("cpermission between", value1, value2, "cpermission");
            return (Criteria) this;
        }

        public Criteria andCpermissionNotBetween(Integer value1, Integer value2) {
            addCriterion("cpermission not between", value1, value2, "cpermission");
            return (Criteria) this;
        }

        public Criteria andCuptimeIsNull() {
            addCriterion("cuptime is null");
            return (Criteria) this;
        }

        public Criteria andCuptimeIsNotNull() {
            addCriterion("cuptime is not null");
            return (Criteria) this;
        }

        public Criteria andCuptimeEqualTo(Date value) {
            addCriterion("cuptime =", value, "cuptime");
            return (Criteria) this;
        }

        public Criteria andCuptimeNotEqualTo(Date value) {
            addCriterion("cuptime <>", value, "cuptime");
            return (Criteria) this;
        }

        public Criteria andCuptimeGreaterThan(Date value) {
            addCriterion("cuptime >", value, "cuptime");
            return (Criteria) this;
        }

        public Criteria andCuptimeGreaterThanOrEqualTo(Date value) {
            addCriterion("cuptime >=", value, "cuptime");
            return (Criteria) this;
        }

        public Criteria andCuptimeLessThan(Date value) {
            addCriterion("cuptime <", value, "cuptime");
            return (Criteria) this;
        }

        public Criteria andCuptimeLessThanOrEqualTo(Date value) {
            addCriterion("cuptime <=", value, "cuptime");
            return (Criteria) this;
        }

        public Criteria andCuptimeIn(List<Date> values) {
            addCriterion("cuptime in", values, "cuptime");
            return (Criteria) this;
        }

        public Criteria andCuptimeNotIn(List<Date> values) {
            addCriterion("cuptime not in", values, "cuptime");
            return (Criteria) this;
        }

        public Criteria andCuptimeBetween(Date value1, Date value2) {
            addCriterion("cuptime between", value1, value2, "cuptime");
            return (Criteria) this;
        }

        public Criteria andCuptimeNotBetween(Date value1, Date value2) {
            addCriterion("cuptime not between", value1, value2, "cuptime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}